<a href="javascript:void(0);" dstype="meai_cancel" class="dssc-btn mt5"><i class=" iconfont">&#xe67a;</i>{$Think.lang.store_close_photo_album}</a>
<div class="goods-gallery add-step2">
    <a class='sample_demo' id="select_submit" href="{:url('Selleralbum/pic_list',['item'=>'goods'])}" style="display:none;">{$Think.lang.ds_submit}</a>
    <div class="nav">
        <span class="l">{$Think.lang.store_goods_album_users} >
            {notempty name="class_name"}
            {$class_name}
            {else/}
            {$Think.lang.store_goods_album_all_photo}
            {/notempty}
        </span><span class="r">
            <select name="jumpMenu" id="jumpMenu" style="width:100px;">
                <option value="0" style="width:80px;">{$Think.lang.ds_please_choose}</option>
                {foreach name="class_list" item="val"}
                <option style="width:80px;" value="{$val.aclass_id}" {if condition="$val.aclass_id eq $Request.param.id"}selected{/if}>{$val.aclass_name}</option>
                {/foreach}
            </select>
        </span></div>
    {notempty name="pic_list"}
    <ul class="list">
        {foreach name="pic_list" item="v"}
        <li onclick="{if $type == 'replace'}replace{else/}insert{/if}_mobile_img('{:goods_thumb($v, "default")}');"><a href="JavaScript:void(0);"><img src="{:goods_thumb($v, 240)}" title='{$v.apic_name}'/></a></li>
        {/foreach}
    </ul>
    {else /}
    <div class="warning-option"><i class="iconfont">&#xe64c;</i><span>{$Think.lang.store_picture_no_album}</span></div>
    {/notempty}
    <div class="pagination">{$show_page|raw}</div>
</div>
<script type="text/javascript">
$(function(){
    $('ul.pagination li a').ajaxContent({
        event:'click', //mouseover
        loaderType:'img',
        loadingMsg:'{$Think.HOME_SITE_ROOT}/images/loading.gif',
        target:'[dstype="mea_img"]'
    });

    $('[dstype="mea_img"]').find('a[class="demo"]').click(function(){
        $('[dstype="mea_img"]').load($(this).attr('href'));
        return false;
    });
    $('#jumpMenu').change(function(){
        $('[dstype="mea_img"]').load(HOMESITEURL+"/Selleralbum/pic_list.html?item=mobile{if $type == 'replace'}&type=replace{/if}&id=" + $(this).val());
    });
});
</script>